xen.git
19 years ago[XEN] Off-by one error in range checks translating gfns to mfns
tdeegan@york.uk.xensource.com [Tue, 29 Aug 2006 08:37:30 +0000 (09:37 +0100)]
[XEN] Off-by one error in range checks translating gfns to mfns
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Don't assume that VMENTER causes a TLB flush, when validating
tdeegan@york.uk.xensource.com [Mon, 28 Aug 2006 16:50:21 +0000 (17:50 +0100)]
[HVM] Don't assume that VMENTER causes a TLB flush, when validating
shadow pagetable updates.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoFix Intel copyright notice in a single source file.
kaf24@localhost.localdomain [Mon, 28 Aug 2006 12:08:41 +0000 (13:08 +0100)]
Fix Intel copyright notice in a single source file.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEND] Move all of the various log files created by xen to
kaf24@localhost.localdomain [Mon, 28 Aug 2006 12:05:00 +0000 (13:05 +0100)]
[XEND] Move all of the various log files created by xen to
be under /var/log/xen instead of under /var/log directly.  This has
the advantage of cleaning things up a little and also can make it
easier to restrict the permissions needed by xend.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
19 years ago[HVM] [SMBIOS] Duplicate UUID into serial number in SMBIOS tables.
kaf24@localhost.localdomain [Mon, 28 Aug 2006 11:59:07 +0000 (12:59 +0100)]
[HVM] [SMBIOS] Duplicate UUID into serial number in SMBIOS tables.

Windows zeroes out the UUID in the SMBIOS tables, but the identifier
is often needed by systems management code.  Duplicating the UUID
as the virtual system's serial number should help.

Signed-off-by: Andrew D. Ball <aball@us.ibm.com>
19 years agoThe following patch fixes a bug where xenconsoled will can SEGV
kaf24@localhost.localdomain [Mon, 28 Aug 2006 11:50:55 +0000 (12:50 +0100)]
The following patch fixes a bug where xenconsoled will can SEGV
because it uses FD_ISSET(-1,xxx).  Since the code is written that any
ring/tty handler can set d->tty_fd to -1 it has to be checked
_every_time_.

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
19 years ago[TOOLS] Remove Gentoo-specific workaround in networking
kaf24@localhost.localdomain [Mon, 28 Aug 2006 11:49:14 +0000 (12:49 +0100)]
[TOOLS] Remove Gentoo-specific workaround in networking
scripts -- apparently it is not needed (reported by
Tuan Van <lang.thang@gmail.com>). See bugzilla issue #741
for more details.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[TOOLS] Clean up routed vifs quietly on domain destruction.
kaf24@localhost.localdomain [Mon, 28 Aug 2006 11:41:15 +0000 (12:41 +0100)]
[TOOLS] Clean up routed vifs quietly on domain destruction.

I have experienced that the vif-route script does not work as expected
when deleting a virtual interface (Redhat FC5). Both of the commands
"ifdown" and "ip route" cause an early vif-route script exit and
therefore will cause skipping of the later script commands (such as
cleaning up iptables entries for the default 'antispoof'). The
vif-route
script creates the following syslog error entry:
"/etc/xen/scripts/vif-route failed; error detected."

It appears that both of the problematic commands are actually
redundant
when destroying domains:
1. the interface is already gone (I assume because the domain frontend
is gone already)  --> ifdown does not do anything
2. the route is gone as well since the interface has disappeared -->
ip
route del does not do anything

Executing those redundant commands with "do_without_error" ensures
that
the script completes and cleans up iptables rules. The attached
RFC-patch only masks those commands when bringing down an interface,
so
that domain creation continues to fail in case of vif setup problems
(intended behavior).

Having the iptables cleanup called correctly by vif-route is important
to keep the iptables rule-set clean, otherwise antispoof rules
accumulate with every vif creation.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>

19 years ago[HVM][SVM] Allow SVM to take advantage of flag_dr_dirty.
kaf24@localhost.localdomain [Mon, 28 Aug 2006 11:35:43 +0000 (12:35 +0100)]
[HVM][SVM] Allow SVM to take advantage of flag_dr_dirty.

Signed-off-by: Travis Betak <travis.betak@amd.com>
19 years ago[XEN] Rename shadow2 to shadow and move the various source
kaf24@localhost.localdomain [Mon, 28 Aug 2006 11:09:36 +0000 (12:09 +0100)]
[XEN] Rename shadow2 to shadow and move the various source
files into a sensible directory hierarchy.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[PATCH] fix null pointer dereference in xen_guest_lookup()
Alex Williamson [Sun, 27 Aug 2006 05:56:01 +0000 (06:56 +0100)]
[PATCH] fix null pointer dereference in xen_guest_lookup()

  The latest ELF changes have a null pointer dereference bug when you
have neither an elf notes section nor a __xen_guest_string.  This patch
checks for the existence of the __xen_guest_string prior to using it.
Please apply.  Thanks,

Alex

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
---

19 years ago[XEN] Fix silly transposition typo in previous changeset.
kaf24@firebug.cl.cam.ac.uk [Fri, 25 Aug 2006 21:35:24 +0000 (22:35 +0100)]
[XEN] Fix silly transposition typo in previous changeset.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoReplace dom0_ops hypercall with three new hypercalls:
kfraser@localhost.localdomain [Fri, 25 Aug 2006 17:39:10 +0000 (18:39 +0100)]
Replace dom0_ops hypercall with three new hypercalls:
 1. platform_op -- used by dom0 kernel to perform actions on the
    hardware platform (e.g., MTRR access, microcode update, platform
    quirks, ...)
 2. domctl -- used by management tools to control a specified domain
 3. sysctl -- used by management tools for system-wide actions

Benefits include more sensible factoring of actions to
hypercalls. Also allows tool compatibility to be tracked separately
from the dom0 kernel. The assumption is that it will be easier to
replace libxenctrl, libxenguest and Xen as a matched set if the
dom0 kernel does not need to be replaced too (e.g., because that
would require vendor revalidation).

From here on we hope to maintain dom0 kernel compatibility. This
promise is not extended to tool compatibility beyond the existing
guarantee that compatibility will not be broken within a three-level
stable release [3.0.2, 3.0.3, etc.].

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[TOOLS] Use ELFSIZE to pick the ELF structures to use in readnotes.c
Ian Campbell [Fri, 25 Aug 2006 09:39:24 +0000 (10:39 +0100)]
[TOOLS] Use ELFSIZE to pick the ELF structures to use in readnotes.c

We can remove Elf_Ehdr since it is only used for e_ident which is an
unsigned char array.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agomerge
Ian Campbell [Fri, 25 Aug 2006 09:06:24 +0000 (10:06 +0100)]
merge

19 years ago[LINUX] Remove hypercall permission checks from privcmd driver.
kfraser@localhost.localdomain [Thu, 24 Aug 2006 16:58:28 +0000 (17:58 +0100)]
[LINUX] Remove hypercall permission checks from privcmd driver.

This will allow the tools management to be revised independently
of dom0 kernel interfaces. Currently tools cannot be 'smarter'
than the kernel in terms of hypercalls they know about, because
the kernel disallows access to any hypercalls it does not know
about.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Fixes to the ACPI table definition.
kfraser@localhost.localdomain [Thu, 24 Aug 2006 16:24:54 +0000 (17:24 +0100)]
[HVM] Fixes to the ACPI table definition.

1) Fixed HCT test "Unreported Memory and I/O Port test" for memory
   range 0xC0000~0xFFFFF and IO 0x378
2) Make consistent with non-acpi OS by enabling LPT1, remove com2
   which conflicts with usb mouse
3) Fixed the USB HID-Compliant mouse when set
   usbdevice='tablet'/'mouse'
4) Fixed Vista boot by removing old NIC "resourceConsumer"

Signed-off-by: Winston Wang <winston.l.wang@intel.com>
19 years agoRemove redundant performance counters.
Steven Hand [Thu, 24 Aug 2006 15:25:49 +0000 (16:25 +0100)]
Remove redundant performance counters.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years agoEnsure get_dom_domid() terminates even when /local/domain/<foo>/name is
Steven Hand [Thu, 24 Aug 2006 13:07:01 +0000 (14:07 +0100)]
Ensure get_dom_domid() terminates even when /local/domain/<foo>/name is
not present.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years ago[POWERPC] Remove references to xen_guest_string from ppc dom0 builder.
Ian Campbell [Thu, 24 Aug 2006 09:58:41 +0000 (10:58 +0100)]
[POWERPC] Remove references to xen_guest_string from ppc dom0 builder.
The xen_guest_string should not be examined directly and the ppc code
doesn't use it yet anyway.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Fix shadow2 issues with HVM guests.
kfraser@localhost.localdomain [Thu, 24 Aug 2006 08:49:41 +0000 (09:49 +0100)]
[XEN] Fix shadow2 issues with HVM guests.

This supercedes 11243:51a98a6c2c054bfc37c90a5a3f29929f2347bda8
which was incorrect because the data operand type codes in
the opcode table are not correct for some special cases: one
of these happens to be PUSH, which is the instruction we
particularly need to fix!

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoThis small patch adds back a closing paranthesis that has gone lost. It
Ewan Mellor [Wed, 23 Aug 2006 22:12:56 +0000 (23:12 +0100)]
This small patch adds back a closing paranthesis that has gone lost. It
fixes the build for the Xen access control module.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>

19 years agoThe various tools expect the device node to be /dev/xen/evtchn -- this
Ewan Mellor [Wed, 23 Aug 2006 21:16:02 +0000 (22:16 +0100)]
The various tools expect the device node to be /dev/xen/evtchn -- this
makes it so that udev actually creates the device there

Signed-off-by: Jeremy Katz <katzj@redhat.com>
19 years agomerge
Ian Campbell [Wed, 23 Aug 2006 17:39:17 +0000 (18:39 +0100)]
merge

19 years ago[XEN] Restore backwards compatibility by supporting __xen_guest
Ian Campbell [Wed, 23 Aug 2006 17:38:49 +0000 (18:38 +0100)]
[XEN] Restore backwards compatibility by supporting __xen_guest
section in dom0 loader.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Fix the x86 emulator to safely fail when it turns out the
kfraser@localhost.localdomain [Wed, 23 Aug 2006 17:38:08 +0000 (18:38 +0100)]
[XEN] Fix the x86 emulator to safely fail when it turns out the
faulting memory access was to/from an implicit memory operand
(typically either an instruction fetch or stack access).
Rationalise use of macros for page fault error code flags.
This patch supercedes the fix in changeset 11242.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[TOOLS] Cleanups to domU ELF loader.
Ian Campbell [Wed, 23 Aug 2006 17:35:21 +0000 (18:35 +0100)]
[TOOLS] Cleanups to domU ELF loader.

- Remove debugging statements.
- Cope better with archtectures where neither ELF notes or __xen_guest
  are needed or required.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoDon't emulate faulting writes to stack. May fix a number of recent hvm
Steven Hand [Wed, 23 Aug 2006 16:25:11 +0000 (17:25 +0100)]
Don't emulate faulting writes to stack. May fix a number of recent hvm
bugs with the new shadow code. A more complete clean-up of the emulation
code will follow.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years agoRemove all traces of the obsolete BVT scheduler.
kfraser@localhost.localdomain [Wed, 23 Aug 2006 16:14:38 +0000 (17:14 +0100)]
Remove all traces of the obsolete BVT scheduler.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[TOOLS] Remove the 'cpuperf' misc tool. Xenoprof is the
kfraser@localhost.localdomain [Wed, 23 Aug 2006 14:02:55 +0000 (15:02 +0100)]
[TOOLS] Remove the 'cpuperf' misc tool. Xenoprof is the
correct tool to use for hardware perfctr monitoring now.
Also remove unused xc_msr MSR accessor functions from libxenctrl.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[TOOLS] Add a simple tool to display the Xen specific ELF notes.
Ian Campbell [Wed, 23 Aug 2006 13:43:48 +0000 (14:43 +0100)]
[TOOLS] Add a simple tool to display the Xen specific ELF notes.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN/LINUX] Define Xen ELF notes in kernel header and update dom0 builder.
Ian Campbell [Wed, 23 Aug 2006 13:41:05 +0000 (14:41 +0100)]
[XEN/LINUX] Define Xen ELF notes in kernel header and update dom0 builder.

ELF notes provide a cleaner interface for passing Xen specific
information from the kernel to the domain builder than the existing
__xen_guest section string. The __xen_guest string is retained in
kernels built with 3.0.2 compatability for domU however dom0 requires
the new interface.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[TOOLS] Allow tools to load kernels which use an ELF notes segment.
Ian Campbell [Wed, 23 Aug 2006 13:37:39 +0000 (14:37 +0100)]
[TOOLS] Allow tools to load kernels which use an ELF notes segment.

Compatability with kernels using the __xen_guest section is retained.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Define the types to be used with Xen in the ELF notes section.
Ian Campbell [Wed, 23 Aug 2006 13:36:09 +0000 (14:36 +0100)]
[XEN] Define the types to be used with Xen in the ELF notes section.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[LINUX] Define ELFNOTE as a preprocessor macro rather than an assembler macro
Ian Campbell [Wed, 23 Aug 2006 13:34:25 +0000 (14:34 +0100)]
[LINUX] Define ELFNOTE as a preprocessor macro rather than an assembler macro

Assembler .macros have various issues with string arguments and :varargs.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Fix pirq_guest_unbind(). Remove unnecessary code
kfraser@localhost.localdomain [Wed, 23 Aug 2006 10:27:06 +0000 (11:27 +0100)]
[XEN] Fix pirq_guest_unbind(). Remove unnecessary code
(in fact flush_all_pending_eoi() was broken!).
Based on a patch from Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agomerge
Ian Campbell [Tue, 22 Aug 2006 17:51:02 +0000 (18:51 +0100)]
merge

19 years ago[XEN] Remove some accidentally commited debug code
Ian Campbell [Tue, 22 Aug 2006 17:50:22 +0000 (18:50 +0100)]
[XEN] Remove some accidentally commited debug code
from dom0 domain builder.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[SHADOW] Clean up the DOM0_SHADOW_OP interface.
kfraser@localhost.localdomain [Tue, 22 Aug 2006 17:50:01 +0000 (18:50 +0100)]
[SHADOW] Clean up the DOM0_SHADOW_OP interface.
Also bump the dom0 interface version for tools (but
not for dom0 kernel!).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agomerge
Ian Campbell [Tue, 22 Aug 2006 17:48:00 +0000 (18:48 +0100)]
merge

19 years ago[XEN] Revert changes to dom0 domain builder made by cset 11226.
Ian Campbell [Tue, 22 Aug 2006 17:47:29 +0000 (18:47 +0100)]
[XEN] Revert changes to dom0 domain builder made by cset 11226.

We require that the dom0 domain builder still sets _PAGE_USER.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[HVM] Clean ups for PV-on-HVM drivers. In particular, platform-pci
kfraser@localhost.localdomain [Tue, 22 Aug 2006 16:16:58 +0000 (17:16 +0100)]
[HVM] Clean ups for PV-on-HVM drivers. In particular, platform-pci
driver can now handle multi-page hypercall stub areas.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Update x86/64 ELF note patch to version accepted upstream.
Ian Campbell [Tue, 22 Aug 2006 14:55:43 +0000 (15:55 +0100)]
[LINUX] Update x86/64 ELF note patch to version accepted upstream.

Signed-off-by: Ian Campbell <ian.campbell@xesource.com>
19 years ago[x86_64] Guests no longer set _PAGE_USER on kernel mappings.
kfraser@localhost.localdomain [Tue, 22 Aug 2006 14:26:40 +0000 (15:26 +0100)]
[x86_64] Guests no longer set _PAGE_USER on kernel mappings.
This may allow guest kernels to be run outside ring 3 in future, and
also provides scope for optimisations today (e.g., using global bit on
user mappings).

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[hvm] Export gpfn of store page to guest - not mfn.
Christian Limpach [Tue, 22 Aug 2006 14:13:07 +0000 (15:13 +0100)]
[hvm] Export gpfn of store page to guest - not mfn.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoMake add_to_bridge() always leave the device up even when it bails out due to the...
Anil Madhavapeddy [Tue, 22 Aug 2006 13:59:16 +0000 (14:59 +0100)]
Make add_to_bridge() always leave the device up even when it bails out due to the device already being present on the bridge.
This makes the script more idempotent if run twice (e.g. from hotplug and udev), since the second time the device will be taken down and not brought up again, leaving the host without networking.

Signed-off-by: Anil Madhavapeddy <anil@xensource.com>
19 years ago[LINUX] Support creating ELF note segments in the kernel ELF image.
Ian Campbell [Tue, 22 Aug 2006 11:20:43 +0000 (12:20 +0100)]
[LINUX] Support creating ELF note segments in the kernel ELF image.

i386 version is taken from 2.6.18-rc4-mm1 and x86_64 version has been
submitted for inclusion.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agomerge.
Ian Campbell [Tue, 22 Aug 2006 10:34:46 +0000 (11:34 +0100)]
merge.

19 years ago[XEN] Debug builds check for correct usage of percpu areas.
kfraser@localhost.localdomain [Tue, 22 Aug 2006 10:33:59 +0000 (11:33 +0100)]
[XEN] Debug builds check for correct usage of percpu areas.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Revert bits of cset 11202 since they break the -xenU build for x86/64.
Ian Campbell [Tue, 22 Aug 2006 10:30:13 +0000 (11:30 +0100)]
[LINUX] Revert bits of cset 11202 since they break the -xenU build for x86/64.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Clean up some x86 bootstrap code. Replace some CPU iterators
kfraser@localhost.localdomain [Tue, 22 Aug 2006 10:19:48 +0000 (11:19 +0100)]
[XEN] Clean up some x86 bootstrap code. Replace some CPU iterators
with for_each_cpu() -- we want to ensure that per_cpu areas are
accessed only for cpus in cpu_possible_map.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdded option to xentrace to set the trace buffer size.
George Dunlap [Mon, 21 Aug 2006 16:05:11 +0000 (12:05 -0400)]
Added option to xentrace to set the trace buffer size.

Signed-off-by: George Dunlap <gdunlap@xensource.com>
19 years ago[XEN] Remove bogus assertion.
kfraser@localhost.localdomain [Mon, 21 Aug 2006 12:36:05 +0000 (13:36 +0100)]
[XEN] Remove bogus assertion.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix assertion.
Steven Hand [Mon, 21 Aug 2006 12:21:51 +0000 (13:21 +0100)]
Fix assertion.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years ago[XEN] Revert patch 11213.
kfraser@localhost.localdomain [Mon, 21 Aug 2006 10:51:54 +0000 (11:51 +0100)]
[XEN] Revert patch 11213.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Fix maddr_from_mapped_domain_page().
kfraser@localhost.localdomain [Mon, 21 Aug 2006 10:39:27 +0000 (11:39 +0100)]
[XEN] Fix maddr_from_mapped_domain_page().
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Fix shadow2 integration with writable-pagetable logic.
kfraser@localhost.localdomain [Mon, 21 Aug 2006 09:28:02 +0000 (10:28 +0100)]
[XEN] Fix shadow2 integration with writable-pagetable logic.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Remove unnecessary printk from invalid opcode debug output.
kfraser@localhost.localdomain [Mon, 21 Aug 2006 08:01:53 +0000 (09:01 +0100)]
[XEN] Remove unnecessary printk from invalid opcode debug output.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[xend] Add 'xend_config_format' field to the Xend information block.
Christian Limpach [Sun, 20 Aug 2006 23:11:17 +0000 (00:11 +0100)]
[xend] Add 'xend_config_format' field to the Xend information block.
When running 'xm info' it appears thus:

 # xm info
 host                   : 10.13.4.252
 release                : 2.6.17-1.2157_FC5xen0
 version                : #1 SMP Tue Jul 11 23:30:05 EDT 2006
 machine                : x86_64
 ...snipped rest of data...
 cc_compile_domain      : build.redhat.com
 cc_compile_date        : Tue Jul 11 22:50:42 EDT 2006
 xend_config_format     : 2

It will also appear in the SEXPR returned when doing a GET on the
/xend/node path in XenD's HTTP service:

 (node
   (system Linux)
   (host 10.13.4.252)
   (release 2.6.17-1.2157_FC5xen0)
   (version '#1 SMP Tue Jul 11 23:30:05 EDT 2006')
   (machine x86_64)
   ...snipped rest of data...
   (cc_compile_domain build.redhat.com)
   (cc_compile_date 'Tue Jul 11 22:50:42 EDT 2006')
   (xend_config_format 2)
 )

The patch sets the format to value '2' to indicate that we're on the version
with the new style HVM configuration for CDROM devices. The old style having
implicitly been version '1'.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years ago[qemu patches] Update patches for changeset 11209:9bb6c1c1890a.
Christian Limpach [Sun, 20 Aug 2006 23:01:11 +0000 (00:01 +0100)]
[qemu patches] Update patches for changeset 11209:9bb6c1c1890a.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[qemu] hdparm tunable IDE write cache for HVM
Christian Limpach [Sun, 20 Aug 2006 22:59:34 +0000 (23:59 +0100)]
[qemu] hdparm tunable IDE write cache for HVM
qemu 0.8.2 has a flush callback to the storage backends, so now it is
possible to implement hdparm tunable IDE write cache enable/disable for
guest domains, allowing people to pick speed or data consistency on a
case by case basis.

As an added benefit, really large LBA48 IOs will now no longer be broken
up into smaller IOs on the host side.

From: Rik van Riel <riel@redhat.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[qemu patches] Update patches for changeset 11206:fc3e7e65b953.
Christian Limpach [Sun, 20 Aug 2006 22:52:39 +0000 (23:52 +0100)]
[qemu patches] Update patches for changeset 11206:fc3e7e65b953.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[qemu patches] Update patches for changeset 11206:fc3e7e65b953.
Christian Limpach [Sun, 20 Aug 2006 22:34:17 +0000 (23:34 +0100)]
[qemu patches] Update patches for changeset 11206:fc3e7e65b953.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[qemu] Allow booting from more than one device.
Christian Limpach [Sun, 20 Aug 2006 22:33:28 +0000 (23:33 +0100)]
[qemu] Allow booting from more than one device.
The rombios supports trying to boot from more than one device and then
falling back.  Set 'boot=dc' in your config file to try booting first
from the CD and then the hard drive.

Based on a patch from: Jeremy Katz <katzj@redhat.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[XEN] More shadow2 cleanups -- primarily moving arch vcpu/domain
kaf24@localhost.localdomain [Sun, 20 Aug 2006 16:55:33 +0000 (17:55 +0100)]
[XEN] More shadow2 cleanups -- primarily moving arch vcpu/domain
fields into separate shadow2-specific structures.
Also rename shadow2_entry_points to shadow2_paging_mode.
Remove VCPUF_shadow2_translate_mode and replace with a better-named
field in vcpu.arch.shadow2
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Clarify x86 hypercall ABI in public header comments.
kaf24@localhost.localdomain [Sat, 19 Aug 2006 16:07:54 +0000 (17:07 +0100)]
[XEN] Clarify x86 hypercall ABI in public header comments.
In particular: x86/64 *does* clobber its ragument registers
(just like i386). This happens in debug builds, and if a
continuation is created.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XENBUS] Allow user of xenbus_read_driver_state() to distinguish
kaf24@localhost.localdomain [Sat, 19 Aug 2006 13:28:10 +0000 (14:28 +0100)]
[XENBUS] Allow user of xenbus_read_driver_state() to distinguish
absence of state field in xenstore by returning XenbusStateUnknown
rather than XenbusStateClosed.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Replace uses of CONFIG_XEN_PRIVILEGED_GUEST with is_initial_xendomain().
kaf24@localhost.localdomain [Sat, 19 Aug 2006 11:08:12 +0000 (12:08 +0100)]
[LINUX] Replace uses of CONFIG_XEN_PRIVILEGED_GUEST with is_initial_xendomain().
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[HVM][VMX] Don't update the EIP on debug register accesses
kaf24@localhost.localdomain [Sat, 19 Aug 2006 11:07:07 +0000 (12:07 +0100)]
[HVM][VMX] Don't update the EIP on debug register accesses

On debug register accesses, the EIP should not be updated.
Because of the way that lazy save/restore of the debug
registers is implemented, this initial debug register access
is lost.

Signed-off-by: Travis Betak <travis.betak@amd.com>
19 years ago[HVM] Fix SMBIOS entry point copy destination.
kaf24@localhost.localdomain [Sat, 19 Aug 2006 11:06:36 +0000 (12:06 +0100)]
[HVM] Fix SMBIOS entry point copy destination.
Spotted by Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[NET] front: Fix receive path for auto-translated guests, so that
kaf24@localhost.localdomain [Sat, 19 Aug 2006 10:39:04 +0000 (11:39 +0100)]
[NET] front: Fix receive path for auto-translated guests, so that
driver balloon allowance is properly accounted.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Make some implicit header includes explicit.
kaf24@localhost.localdomain [Sat, 19 Aug 2006 10:13:17 +0000 (11:13 +0100)]
[XEN] Make some implicit header includes explicit.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
19 years ago[NET] front: Fix tx buffer leak in teardown path. Fix rx-buffer
kaf24@localhost.localdomain [Sat, 19 Aug 2006 10:08:40 +0000 (11:08 +0100)]
[NET] front: Fix tx buffer leak in teardown path. Fix rx-buffer
cleanup: cannot free skbuffs until their memory is remapped by
multicall.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[NET] front: Fix rx buffer leak when tearing down an interface.
kaf24@localhost.localdomain [Sat, 19 Aug 2006 09:58:07 +0000 (10:58 +0100)]
[NET] front: Fix rx buffer leak when tearing down an interface.
Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
19 years ago[XENBUS] Cleanup correctly on suspend, unregister watches.
kaf24@localhost.localdomain [Sat, 19 Aug 2006 09:21:02 +0000 (10:21 +0100)]
[XENBUS] Cleanup correctly on suspend, unregister watches.
Again needed for domU kexec, so the next kernel instance can register
watches without running into -EBUSY.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
19 years ago[NET/BLK] back: Change the netback and blkback device drivers to allow
kaf24@localhost.localdomain [Sat, 19 Aug 2006 09:20:08 +0000 (10:20 +0100)]
[NET/BLK] back: Change the netback and blkback device drivers to allow
and handle frontend state transition from "Closing" to "Initialising".
Instead of destroying the backend device then they wait for a
reconnect from the frontend.  Needed for domU kexec support, to hand over
devices from one kernel instance to the next.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
19 years ago[BALLOON] Make /proc/xen/ballon contain driver_pages (aka "driver headroom") uncondit...
kaf24@localhost.localdomain [Sat, 19 Aug 2006 09:17:48 +0000 (10:17 +0100)]
[BALLOON] Make /proc/xen/ballon contain driver_pages (aka "driver headroom") unconditionally.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
19 years ago[XENBUS] A few cleanups.
kaf24@localhost.localdomain [Sat, 19 Aug 2006 09:15:01 +0000 (10:15 +0100)]
[XENBUS] A few cleanups.
  * move function prototypes to the top of the file.
  * uses the "struct bus_type" function pointers instead
    of overwriting the "struct device_driver" ones for
    xenbus_dev_probe() and xenbus_dev_remove().

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
19 years ago[XEN] Remove shadow2 dependencies from common code.
kfraser@localhost.localdomain [Fri, 18 Aug 2006 16:59:26 +0000 (17:59 +0100)]
[XEN] Remove shadow2 dependencies from common code.
Disable debugtrace functionality even in debug builds:
it's currently only used by shadow2 maintainers.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Fix the APM BIOS to ensure that interrupts are enabled when it
kfraser@localhost.localdomain [Fri, 18 Aug 2006 15:20:45 +0000 (16:20 +0100)]
[HVM] Fix the APM BIOS to ensure that interrupts are enabled when it
executes an idling HLT. This allow us to re-enable the 'shutdown on
HLT-with-interrupts-disabled' heuristic.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Work around a Linux PAE issue where it sometimes sets
kfraser@localhost.localdomain [Fri, 18 Aug 2006 14:24:10 +0000 (15:24 +0100)]
[XEN] Work around a Linux PAE issue where it sometimes sets
the top half of a PTE without first clearing the bottom half
(to make the PTE not-present) hence the PTE fails validation
checks.

Also remove dead revalidation function after shadow2 checkin.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix Xen Rules.mk eval order so that debug=y always sets verbose=y.
kfraser@localhost.localdomain [Fri, 18 Aug 2006 14:22:54 +0000 (15:22 +0100)]
Fix Xen Rules.mk eval order so that debug=y always sets verbose=y.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[qemu patches] Update patches for changeset 11186:078bfd250677.
Christian Limpach [Thu, 17 Aug 2006 19:31:47 +0000 (20:31 +0100)]
[qemu patches] Update patches for changeset 11186:078bfd250677.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[qemu] Support HVM guests with more than 3.75G memory.
Christian Limpach [Thu, 17 Aug 2006 19:31:13 +0000 (20:31 +0100)]
[qemu] Support HVM guests with more than 3.75G memory.
Changes are:
1) M2P table and e820 table are changed to skip address space from
HVM_RAM_LIMIT_BELOW_4G to 4G.
2) shared io page location, when less than HVM_RAM_LIMIT_BELOW_4G
memory, it's the last page of RAM as today, or it's the last page of
HVM_RAM_LIMIT_BELOW_4G RAM.
3) in qemu-dm address space from HVM_RAM_LIMIT_BELOW_4G to 4G are
stuffed with mfns starting from 4G, so the 1:1 mapping can still works.
This is ugly, but another limit check patch as changeset 10757 will
prevent qemu-dm to access this range.  This ugly stuffing will be
removed when the patch to remove 1:1 mapping from qemu-dm gets accepted
in the future.

Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoFix live migration w/ shadow2.
Steven Hand [Thu, 17 Aug 2006 19:30:05 +0000 (20:30 +0100)]
Fix live migration w/ shadow2.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years ago[SVM] Fix 64-bit VMRUN.
kfraser@localhost.localdomain [Thu, 17 Aug 2006 18:24:20 +0000 (19:24 +0100)]
[SVM] Fix 64-bit VMRUN.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Indentation cleanups (remove hard tabs).
kfraser@localhost.localdomain [Thu, 17 Aug 2006 18:17:50 +0000 (19:17 +0100)]
[XEN] Indentation cleanups (remove hard tabs).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMissing file from unmodified_drivers directory.
kfraser@localhost.localdomain [Thu, 17 Aug 2006 18:17:30 +0000 (19:17 +0100)]
Missing file from unmodified_drivers directory.

19 years ago[XEN] Fix page-fault handler to fall back to shadow-mode fault path if
kfraser@localhost.localdomain [Thu, 17 Aug 2006 18:16:01 +0000 (19:16 +0100)]
[XEN] Fix page-fault handler to fall back to shadow-mode fault path if
writable pagetable logic fails to fix up a fault.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[NET] front: Improve correctness when there is no connection to backend driver.
kfraser@localhost.localdomain [Thu, 17 Aug 2006 18:11:14 +0000 (19:11 +0100)]
[NET] front: Improve correctness when there is no connection to backend driver.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[NET] front: Allow driver to be built for an HVM guest.
kfraser@localhost.localdomain [Thu, 17 Aug 2006 17:45:59 +0000 (18:45 +0100)]
[NET] front: Allow driver to be built for an HVM guest.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix 64bit shadow tracking
tdeegan@york.uk.xensource.com [Thu, 17 Aug 2006 17:39:10 +0000 (18:39 +0100)]
Fix 64bit shadow tracking
(The mask used to check for available shadows was off by 1 bit)

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoAdd a small readme file explaining how to build PV-on-HVM drivers.
kfraser@localhost.localdomain [Thu, 17 Aug 2006 16:10:13 +0000 (17:10 +0100)]
Add a small readme file explaining how to build PV-on-HVM drivers.
Signed-off-by: Steven Smith <ssmith@xensource.com>
19 years agoUpdate hgignore list for PV-on-HVM drivers.
kfraser@localhost.localdomain [Thu, 17 Aug 2006 16:09:21 +0000 (17:09 +0100)]
Update hgignore list for PV-on-HVM drivers.
Signed-off-by: Steven Smith <ssmith@xensource.com>
19 years ago[NET] front: Allow driver to be built against kernels which do not
kfraser@localhost.localdomain [Thu, 17 Aug 2006 16:08:19 +0000 (17:08 +0100)]
[NET] front: Allow driver to be built against kernels which do not
have extended checksum-offload info fields in teh skbuff structure.
Based on a patch from Steven Smith <ssmith@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[NET] front: Make netfront compile against kernels without the GSO patch.
kfraser@localhost.localdomain [Thu, 17 Aug 2006 15:57:43 +0000 (16:57 +0100)]
[NET] front: Make netfront compile against kernels without the GSO patch.
Signed-off-by: Steven Smith <ssmith@xensource.com>
19 years ago[LINUX] Fix return value of gnttab_resume().
kfraser@localhost.localdomain [Thu, 17 Aug 2006 15:57:16 +0000 (16:57 +0100)]
[LINUX] Fix return value of gnttab_resume().
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Allow blkfront driver to be built for an HVM guest.
kfraser@localhost.localdomain [Thu, 17 Aug 2006 15:33:42 +0000 (16:33 +0100)]
[HVM] Allow blkfront driver to be built for an HVM guest.
Signed-off-by: Steven Smith <ssmith@xensource.com>
19 years ago[HVM] Allow xenbus to run in an HVM guest.
kfraser@localhost.localdomain [Thu, 17 Aug 2006 15:32:30 +0000 (16:32 +0100)]
[HVM] Allow xenbus to run in an HVM guest.
Signed-off-by: Steven Smith <ssmith@xensource.com>
19 years agomerge
kfraser@localhost.localdomain [Thu, 17 Aug 2006 15:29:21 +0000 (16:29 +0100)]
merge